package com.hna.eking.Exception;

public class RunTimeException extends Exception {
	private String errorCode;
	private boolean propertiesKey = true;
	public final static String WEB_CONTROL_STATUS_SUCC = "200";
	public final static String WEB_CONTROL_CREATE_SUCC = "201";
	public final static String WEB_CONTROL_DETE_SUCC = "204";
	public final static String WEB_DATA_NOT_FOUND = "205";
	public final static String WEB_CONTROL_STATUS_PARM_NULL = "406";
	public final static String MAIN_SESSION_NULL_EXCEPTION = "401";
	public final static String RESULT_UUID_NULL_EXCEPTION = "402";
	public final static String MAIN_CLASS_NULL_EXCEPTION = "403";
	public final static String SQL_STR_NULL_EXCEPTION = "404";
	public final static String MAIN_JAR_NULL_EXCEPTION = "405";
	public final static String MAIN_SQL_ERROR_EXCEPTION = "406";
	public RunTimeException(String Msg){
		super(Msg);
	}
	public RunTimeException(String message, Throwable cause)
    {
        super(message, cause);
    }
	 public RunTimeException(String errorCode, String message, Throwable cause, boolean propertiesKey)
     {
         super(message, cause);
         this.setErrorCode(errorCode);
         this.setPropertiesKey(propertiesKey);
     }
    public RunTimeException(String errorCode, String message, boolean propertiesKey)
     {
         super(message);
         this.setErrorCode(errorCode);
         this.setPropertiesKey(propertiesKey);
     }
     public RunTimeException(String errorCode, String message, Throwable cause)
     {
         this(errorCode, message, cause, true);
     }
     public RunTimeException(String errorCode, String message)
     {
         this(errorCode, message, true);
     }
    public String getErrorCode()
    {
        return errorCode;
    }

    public void setErrorCode(String errorCode)
    {
        this.errorCode = errorCode;
    }

    public boolean isPropertiesKey()
    {
        return propertiesKey;
    }

    public void setPropertiesKey(boolean propertiesKey)
    {
        this.propertiesKey = propertiesKey;
    }
}
